#ifndef I2C_TEST_H
#define I2C_TEST_H

#include "stm32f10x_i2c.h"

#include "stm32f10x.h"





#if 1
#define I2C_TEST I2C1

#define I2C_SCL_PIN GPIO_Pin_6
#define I2C_SDA_PIN GPIO_Pin_7
#define I2C_SCL_PORT GPIOB
#define RCC_APB1_GPIO_I2C RCC_APB1Periph_I2C1
#define RCC_APB2_GPIO_B 	RCC_APB2Periph_GPIOB


#else 
#define I2C_TEST I2C2

#define I2C_SCL_PIN GPIO_Pin_10
#define I2C_SDA_PIN GPIO_Pin_11
#define I2C_SCL_PORT GPIOB
#define RCC_APB1_GPIO_I2C RCC_APB1Periph_I2C2
#define RCC_APB2_GPIO_B 	RCC_APB2Periph_GPIOB


#endif

Status I2C_Data_Read(u8 SLAVE_ADDR,u8 Register, u8* I2C_pBuffer, u8 NumofByte);

Status I2C_Data_Write(u8 SLAVE_ADDR, u8 Register, u8 Data);
void Read_AccData(void);

#endif

